<template>
  <div class="loginBox">
    <div class="title">
      {{ $t('login.login1') }}
    </div>
    <div class="btn" @click="login">
      <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor"
        stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="tabler-icon tabler-icon-brand-discord">
        <path d="M8 12a1 1 0 1 0 2 0a1 1 0 0 0 -2 0"></path>
        <path d="M14 12a1 1 0 1 0 2 0a1 1 0 0 0 -2 0"></path>
        <path
          d="M15.5 17c0 1 1.5 3 2 3c1.5 0 2.833 -1.667 3.5 -3c.667 -1.667 .5 -5.833 -1.5 -11.5c-1.457 -1.015 -3 -1.34 -4.5 -1.5l-.972 1.923a11.913 11.913 0 0 0 -4.053 0l-.975 -1.923c-1.5 .16 -3.043 .485 -4.5 1.5c-2 5.667 -2.167 9.833 -1.5 11.5c.667 1.333 2 3 3.5 3c.5 0 2 -2 2 -3">
        </path>
        <path d="M7 16.5c3.5 1 6.5 1 10 0"></path>
      </svg>
      <span>{{ $t('login.login2') }}</span>
    </div>
    <div @click="login" class="btn" style="background-color: rgb(21, 22, 24);">
      <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor"
        stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="tabler-icon tabler-icon-brand-github">
        <path
          d="M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5">
        </path>
      </svg>
      <span>{{ $t('login.login3') }}</span>
    </div>
    <div @click="login" class="btn" style="background-color: #4285f4">
      <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor"
        stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="tabler-icon tabler-icon-brand-google">
        <path d="M20.945 11a9 9 0 1 1 -3.284 -5.997l-2.655 2.392a5.5 5.5 0 1 0 2.119 6.605h-4.125v-3h7.945z"></path>
      </svg>
      <span>{{ $t('login.login4') }}</span>
    </div>
    <div @click="login" class="btn" style="background-color: rgb(255, 87, 0)">
      <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor"
        stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="tabler-icon tabler-icon-brand-reddit">
        <path
          d="M12 8c2.648 0 5.028 .826 6.675 2.14a2.5 2.5 0 0 1 2.326 4.36c0 3.59 -4.03 6.5 -9 6.5c-4.875 0 -8.845 -2.8 -9 -6.294l-1 -.206a2.5 2.5 0 0 1 2.326 -4.36c1.646 -1.313 4.026 -2.14 6.674 -2.14z">
        </path>
        <path d="M12 8l1 -5l6 1"></path>
        <path d="M19 4m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"></path>
        <circle cx="9" cy="13" r=".5" fill="currentColor"></circle>
        <circle cx="15" cy="13" r=".5" fill="currentColor"></circle>
        <path d="M10 17c.667 .333 1.333 .5 2 .5s1.333 -.167 2 -.5"></path>
      </svg>
      <span>{{ $t('login.login5') }}</span>
    </div>
    <div class="mantine-vpb0dt">
      <div class="mantine-kwp63y">
        {{ $t('login.login6') }}
      </div>
    </div>
    <div class="inputs">
      <div class="label">
        {{ $t('login.login7') }} <span>*</span>
      </div>
      <div class="input">
        <input type="text" placeholder="coolperson@email.com">
      </div>
    </div>

    <div @click="login" class="btn" style="background-color: rgb(102, 102, 102)">
      <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor"
        stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="tabler-icon tabler-icon-mail">
        <path d="M3 7a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-10z"></path>
        <path d="M3 7l9 6l9 -6"></path>
      </svg>
      <span>{{ $t('login.login7') }}</span>
    </div>
  </div>
</template>

<script>
export default {
  name: "login",
  data() {
    return {

    };
  },
  mounted() { },
  methods: {
    login(){
      sessionStorage.setItem('token','123')
      this.$router.push('/')
      
      // this.$emit('loginSuccess')
    }
  },
};
</script>

<style lang="less" scoped>
.loginBox {
  outline: 0px;
  -webkit-tap-highlight-color: transparent;
  display: block;
  text-decoration: none;
  color: rgb(193, 194, 197);
  background-color: rgb(26, 27, 30);
  box-sizing: border-box;
  border-radius: 8px;
  box-shadow: none;
  border: 1px solid rgb(55, 58, 64);
  padding: 24px;
  margin: 0 auto;
  width: 508px;

  .title {
    font-size: 18px;
    line-height: 1.55;
    text-decoration: none;
    font-weight: 500;
  }

  .btn {
    width: 100%;
    height: 34px;
    background-color: #5865f2;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-weight: 600;
    margin-top: 17px;
    color: #fff;
    cursor: pointer;

    span {
      margin-left: 5px;
    }
  }
}

.mantine-vpb0dt {
  border-right: 0px;
  border-bottom: 0px;
  border-left: 0px;
  border-image: initial;
  margin: 0px;
  border-top: 0px !important;
}

.mantine-kwp63y {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  -webkit-tap-highlight-color: transparent;
  color: inherit;
  font-size: 12px;
  line-height: 1.55;
  text-decoration: none;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

.mantine-kwp63y::before {
  content: "";
  flex: 1 1 0%;
  height: 1px;
  border-top: 1px solid rgb(55, 58, 64);
  margin-right: 10px;
}

.mantine-kwp63y::after {
  content: "";
  flex: 1 1 0%;
  border-top: 1px solid rgb(55, 58, 64);
  margin-left: 10px;
}

.inputs {
  .label {
    font-size: 15px;
    margin-bottom: 5px;

    span {
      color: red;
    }
  }

  input {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    height: 36px;
    -webkit-tap-highlight-color: transparent;
    line-height: 34px;
    appearance: none;
    resize: none;
    box-sizing: border-box;
    font-size: 14px;
    width: 100%;
    color: rgb(193, 194, 197);
    display: block;
    text-align: left;
    min-height: 36px;
    padding-left: 12px;
    padding-right: 36px;
    border-radius: 4px;
    border: 1px solid rgb(55, 58, 64);
    background-color: rgb(37, 38, 43);
    transition: border-color 100ms ease 0s;
  }
}

@media screen and (max-width:768px) {
  .loginBox{
    width: 91%;
    margin: 0 auto;
  }
}

</style>
